<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #root{
            border:1px solid red;
        }
    </style>
</head>
<body>
    <div id="root"></div>
    <script>
        let oRoot = document.getElementById('root');

        let oDiv = document.createElement('div');
        oDiv.innerHTML = 111;

        let oP = document.createElement('p');
        oP.innerHTML = 22;

        let fragment = document.createDocumentFragment();
        fragment.appendChild(oDiv);
        fragment.appendChild(oP);

        oRoot.appendChild(fragment);

    </script>
</body>
</html>